package com.ltkj.shop.domain.vo;

import com.ltkj.common.core.utils.bean.BeanUtils;
import com.ltkj.system.api.domain.SysDictData;
import lombok.Data;

/**
 * 字典项移动端展示参数
 */
@Data
public class DictDataVo {
    private String dictType;
    private String dictValue;
    private String dictLabel;

    public static DictDataVo fromDO (SysDictData dictData) {
        DictDataVo dictDataVo = new DictDataVo();
        BeanUtils.copyBeanProp(dictDataVo, dictData);
        return dictDataVo;
    }
}
